import request from "@/utils/request";

/*
 * 智能设备
 * */

//监控设备列表
export function GetDeviceMonitorList(query) {
  return request({
    url: "/admin/device.Monitor/index",
    method: "get",
    params: query,
  });
}
// 新增监控设备
export function addDeviceMonitor(query) {
  return request({
    url: "/admin/device.Monitor/add",
    method: "post",
    data: query,
  });
}
// 编辑监控设备
export function EditDeviceMonitor(query) {
  return request({
    url: "/admin/device.Monitor/edit",
    method: "post",
    data: query,
  });
}
// 删除监控设备
export function DeleteDeviceMonitor(query) {
  return request({
    url: "/admin/device.Monitor/delete",
    method: "post",
    data: query,
  });
}

/*
 * 智能设备
 * */

// 智能设备列表
export function GetDeviceMonitoraiList(query) {
  return request({
    url: "/admin/device.Monitorai/index",
    method: "get",
    params: query,
  });
}
// 新增
export function addDeviceMonitorai(query) {
  return request({
    url: "/admin/device.Monitorai/add",
    method: "post",
    data: query,
  });
}
// 修改
export function editDeviceMonitorai(query) {
  return request({
    url: "/admin/device.Monitorai/edit",
    method: "post",
    data: query,
  });
}
// 删除
export function deleteDeviceMonitorai(query) {
  return request({
    url: "/admin/device.Monitorai/delete",
    method: "post",
    data: query,
  });
}

/*
 * 报警模块
 * */

// 报警信息列表
export function GetDeviceSosList(query) {
  return request({
    url: "/admin/device.Sos/index",
    method: "get",
    params: query,
  });
}
// 添加报警设备
export function AddDeviceSos(query) {
  return request({
    url: "/admin/device.Sos/add",
    method: "post",
    data: query,
  });
}
// 编辑报警设备
export function EditDeviceSos(query) {
  return request({
    url: "/admin/device.Sos/edit",
    method: "post",
    data: query,
  });
}
// 删除报警设备
export function DeleteDeviceSos(query) {
  return request({
    url: "/admin/device.Sos/delete",
    method: "post",
    data: query,
  });
}

/*
 * 广播模块
 * */

// 广播列表
export function GetDeviceVoiceList(query) {
  return request({
    url: "/admin/device.Voice/index",
    method: "get",
    params: query,
  });
}
// 添加报警设备
export function AddDeviceVoice(query) {
  return request({
    url: "/admin/device.Voice/add",
    method: "post",
    data: query,
  });
}
// 编辑报警设备
export function EditDeviceVoice(query) {
  return request({
    url: "/admin/device.Voice/edit",
    method: "post",
    data: query,
  });
}
// 删除报警设备
export function DeleteDeviceVoice(query) {
  return request({
    url: "/admin/device.Voice/delete",
    method: "post",
    data: query,
  });
}

// 报警记录
export function sosLog(query) {
  return request({
    url: "/admin/device.Sos/sosLog",
    method: "get",
    params: query,
  });
}
